#ifndef __FRUIT_CENTER_H
#define __FRUIT_CENTER_H

#include "typedefs.h"

#define FRUIT_POS_MAX_NUM							10

typedef enum{
	manual_within,
	manual_external,
	auto_whthin,
	auto_external,
	FRUIT_TYPE_MAX,
	fruit_type_none,
}fruit_type_t;

typedef object_pos_t fruit_pos_t;

bool FruitCenter_AddPos(fruit_type_t type,uint16_t x,uint16_t y);
fruit_pos_t FruitCenter_GetPos(fruit_type_t type,uint8_t num);
uint8_t FruitCenter_GetPosNum(fruit_type_t type);
void FruitCenter_ClearPos(fruit_type_t type);

void FruitCenter_AddPickedFruit(void);
uint8_t FruitCenter_GetPickedFruit(void);
void FruitCenter_ClearPickedFruit(void);

void FruitCenter_SetPickType(fruit_type_t type);
fruit_type_t FruitCenter_GetPickType(void);

#endif
